<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改客户信息')" />
    <th:block th:include="include :: ztree-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-role-edit">
        <div class="form-group">
            <label class="col-sm-3 control-label">客户id：</label>
            <div class="col-sm-8">
                <input name="id" id="name" class="form-control" type="text" th:value="${sysStudent.id}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">客户姓名：</label>
            <div class="col-sm-8">
                <input name="name" id="id" class="form-control" type="text" th:value="${sysStudent.name}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">性别：</label>
            <div class="col-sm-8">
                <input name="sex" id="sex" class="form-control" type="text" th:value="${sysStudent.sex}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">联系电话：</label>
            <div class="col-sm-8">
                <input name="telephone" id="telephone" class="form-control" type="text" th:value="${sysStudent.telephone}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">所属公司：</label>
            <div class="col-sm-8">
                <input name="company" id="company" class="form-control" type="text" th:value="${sysStudent.company}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">所属区域：</label>
            <div class="col-sm-8">
                <input name="sysCityId" id="sysCityId" class="form-control" type="text" th:value="${sysStudent.sysCityId}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">状态：</label>
            <div class="col-sm-8">
                <select name="status" class="form-control">
                    <option value="1" th:selected="${sysStudent.status} eq 0">可用</option>
                    <option value="2" th:selected="${sysStudent.status} eq 1">不可用</option>
                </select>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">创建时间：</label>
            <div class="col-sm-8">
                <div class="input-group date">
                    <input name="createTime" th:value="${#dates.format(sysStudent.createTime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                    <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                </div>
            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-3 control-label">创建人：</label>
            <div class="col-sm-8">
                <input name="sysCreateUserId" class="form-control" type="text" th:value="${sysStudent.sysCreateUserId}" readonly>
            </div>
        </div>
</form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript">
    var prefix = ctx + "market/customer"
    $("#form-role-edit").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/doedit", $('#form-role-edit').serialize());
        }
    }

    // $("input[name='createTime']").datetimepicker({
    //     format: "yyyy-mm-dd",
    //     minView: "month",
    //     autoclose: true
    // });
</script>
</body>
</html>